# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-pypytools
pkgver=0.6.2
pkgrel=0
pkgdesc="collection of useful tools to use PyPy-specific features, with CPython fallbacks"
url="https://github.com/antocuni/pypytools"
arch="noarch"
license="MIT"
makedepends="py3-setuptools"
checkdepends="py3-freezegun py3-numpy py3-pytest"
source="https://files.pythonhosted.org/packages/source/p/pypytools/pypytools-$pkgver.tar.gz
	python3.8.patch
	"
builddir="$srcdir/pypytools-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
5e95ea6c30403d3b46ab43bfa316ba9b3dda85149aa0aaadc3056c74683c2e60cff357d86989b43ccb8fe73ee2a4bace9e8bdb7f164ea497211b4843c32fc05f  pypytools-0.6.2.tar.gz
836c87620af5d76c3483d3c8b3b696922f4245c3faf16a851f3df6862d7c6615023eb25b3f3a0e76106a115eea07eb51c14b826d52dc0382a37ac5347f910478  python3.8.patch
"
